package com.lmb.todo.pojo.resp;

/**
 * @author Lenovo
 */
public class Code {


    /**
     * HTTP 常见的状态码
     */
    public static final Integer HTTP_SUCCESS = 200;
    public static final Integer HTTP_FAILED = 403;
    public static final Integer HTTP_NOT_FOUND = 404;

    /**
     * 客户端错误码
     */
    public static final Integer C_USERNAME_PASSWORD_ERROR = 10000;
    public static final Integer C_USERNAME_REPETITION = 10001;
    public static final Integer C_TOKEN_EXPIRED = 11000;
    public static final Integer C_UNAUTHORIZED = 10002;
    public static final Integer C_D_PASSWORD_ERROR = 10003;
    public static final Integer C_UPDATE_ERROR = 10004;
    public static final Integer C_DELETE_ERROR = 10005;
    public static final Integer C_INSERT_ERROR = 10006;
    public static final Integer C_SELECT_ERROR = 10007;
    public static final Integer C_FOREIGN_KEY_ERROR = 10008;
    public static final Integer C_UNKNOWN_ERROR = 19999;

    /**
     * 服务端错误码
     */
    public static final Integer S_UNKNOWN_ERROR = 29999;

}
